<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title></title>
</head>
<body>
	<input type="file" id="ipt" multiple><!-- multiple选中多个文件 -->
</body>
<script>
ipt.onchange=function(){
	//console.log(this.value)//没有意义
	
	//console.log(this.files);
	//console.log(this.files[0]);//获取第几个文件
	console.log(this.files.item(0));//获取第几个文件
console.log(this.files.item(0).name);//用法一样
}
</script>
</html>